#通过Python来模拟实现一个txt文件的拷贝过程

import os

def copy(path,path1):                       #path原文件地址，path1指定地址

    fp = open(path,'r')

    fp1 = open(path1,'w')

    for i in fp:

        fp1.write(i)                        #向新文件中写入数据

    fp.close()

    fp1.close()


copy("C:\\Users\\wbw\\Desktop\\Whhpython\\homework4\\1.text","C:\\Users\\wbw\\Desktop\\Whhpython\\homework4\\2.text")
